<template>
  <div class="common-wrap">
    <div class="right">
      <el-button type="text" icon="el-icon-edit">{{ $t('security.edit') }}</el-button>
    </div>
    <h5>{{ $t('model.comfun') }}</h5>
    <div class="action-group">
      <template v-for="action in actionList">
        <div @click="handleAction(action)" style="cursor:pointer">
          <i class="iconfont" :class="action.icon"></i>
          <p>{{action.label}}</p>
        </div>
      </template>
    </div>
  </div>
</template>

<script>
export default {
  name:"common",
  data(){
    return {
      actionList:[
        {label:this.$t('in.asn'),icon:"icon-document",url:"asn"},
        {label:this.$t('out.outbound'),icon:"icon-order",url:"orders"},
        {label:this.$t('wave.wavemgmt'),icon:"icon-wave",url:"wavemgmt"},
        {label:this.$t('out.pick'),icon:"icon-task",url:"pick"},
        {label:this.$t('in.rtxqc'),icon:"icon-check",url:"rtxqc"},
      ]}
  },
  computed:{

  },
  methods:{
    handleAction(action){
      this.$router.push({name:action.url})
    },
    getList(){
      this.$get("/baUserMenu/selectBaUserMenuList").then(res => {
        
      })
    }
  },
  mounted(){
    this.getList()
  }
}
</script>

<style lang="scss" scoped>
.action-group{
  display: flex;
  flex-wrap: nowrap;
  &>div{
    text-align: center;
    width: 100px;
    padding: 10px;
  }
  .iconfont{
    font-size: 42px;
  }
  .icon-document{
    color: #1999dc;
  }
  .icon-order{
    color: #36a5e0;
  }
  .icon-wave{
    color: #fa832b;
  }
  .icon-task{
    color: #fa7e23;
  }
  .icon-check{
    color: #f36655;
  }
}
</style>